package com.changgou;

import entity.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * author：wuBin
 * 类的描述：
 */

@SpringBootApplication
@EnableEurekaClient  //eureka的客户端开启
@MapperScan("com.changgou.dao")
public class GoodsApplication {

    public static void main(String[] args) {
        SpringApplication.run(GoodsApplication.class,args);


    }
    @Bean
    public IdWorker GetIdWorker(){
        return new IdWorker();
    }
}
